package com.dlc.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author Citrus
 * @date 2021-09-15 11:18:33
 */
@Data
@TableName("tz_take_stock")
public class TakeStock implements Serializable{
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "盘点id" )
    private Long takeStockId;

    @Schema(description = "盘点单号" )
    private String takeStockNo;

    @Schema(description = "盘点状态 0已作废 1盘点中 2已完成" )
    private Integer billStatus;

    @Schema(description = "制单人" )
    private Long maker;

    @Schema(description = "制单人手机号" )
    private String makerMobile;

    @Schema(description = "盘点时间" )
    private Date createTime;

    @Schema(description = "盘点区域名称" )
    private String stockRegionName;

    @Schema(description = "备注" )
    private String remark;

    @Schema(description = "店铺id" )
    private Long shopId;

    @Schema(description = "仓库id")
    private Long warehouseId;

    @Schema(description = "库存点类型(1:仓库 2:门店)")
    private Integer stockPointType;

    @Schema(description = "盘点商品列表" )
    @TableField(exist = false)
    private List<TakeStockProd> takeStockProdList;
}
